package com.hxwm.entity;


import com.hxwm.util.Util;

import java.util.Map;

public class MapperTableRelation {

    private String oldTableIndex;
    private String oldTableFieldName;
    private String newTableFieldName;
    private MapperField oldField;
    private MapperField newField;
    public MapperTableRelation(MapperField oldField, MapperField newField,String oldTableIndex) {
        this.oldTableFieldName = oldField.getFieldName();
        this.newTableFieldName = newField.getFieldName();
        this.oldField = oldField;
        this.newField = newField;
        this.oldTableIndex = oldTableIndex;
    }

    public MapperField getOldField() {
        return oldField;
    }

    public void setOldField(MapperField oldField) {
        this.oldField = oldField;
    }

    public MapperField getNewField() {
        return newField;
    }

    public void setNewField(MapperField newField) {
        this.newField = newField;
    }

    public String getOldTableFieldName() {
        return oldTableFieldName;
    }

    public void setOldTableFieldName(String oldTableFieldName) {
        this.oldTableFieldName = oldTableFieldName;
    }

    public String getNewTableFieldName() {
        return newTableFieldName;
    }

    public void setNewTableFieldName(String newTableFieldName) {
        this.newTableFieldName = newTableFieldName;
    }

    public String getOldTableIndex() {
        return oldTableIndex;
    }

    public void setOldTableIndex(String oldTableIndex) {
        this.oldTableIndex = oldTableIndex;
    }
}
